import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
import zhCn from "element-plus/es/locale/lang/zh-cn"; //国际化
export default {
	install(app: any) {
		app.use(ElementPlus, { locale: zhCn });
		//全局注册图标组件
		for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
			app.component(`ElIcon${key}`, component);
		}
	},
};
